package com.example.demo.Service.impl;

import com.example.demo.Service.IProductHotService;
import com.example.demo.entity.vo.ProductHotVo;
import com.example.demo.mapper.ProductHotMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class IProductHotServiceImpl implements IProductHotService {

    @Autowired
    private ProductHotMapper productHotMapper;

    @Override
    public List<ProductHotVo> list() {
        return productHotMapper.select();
    }

    @Override
    public int count() {
        return productHotMapper.selectCount();
    }

}
